package com.cloudserver.springboot.bean;

import java.util.ArrayList;
import java.util.List;

public class MessageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MessageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andClassifySecondIdIsNull() {
            addCriterion("classify_second_id is null");
            return (Criteria) this;
        }

        public Criteria andClassifySecondIdIsNotNull() {
            addCriterion("classify_second_id is not null");
            return (Criteria) this;
        }

        public Criteria andClassifySecondIdEqualTo(String value) {
            addCriterion("classify_second_id =", value, "classifySecondId");
            return (Criteria) this;
        }

        public Criteria andClassifySecondIdNotEqualTo(String value) {
            addCriterion("classify_second_id <>", value, "classifySecondId");
            return (Criteria) this;
        }

        public Criteria andClassifySecondIdGreaterThan(String value) {
            addCriterion("classify_second_id >", value, "classifySecondId");
            return (Criteria) this;
        }

        public Criteria andClassifySecondIdGreaterThanOrEqualTo(String value) {
            addCriterion("classify_second_id >=", value, "classifySecondId");
            return (Criteria) this;
        }

        public Criteria andClassifySecondIdLessThan(String value) {
            addCriterion("classify_second_id <", value, "classifySecondId");
            return (Criteria) this;
        }

        public Criteria andClassifySecondIdLessThanOrEqualTo(String value) {
            addCriterion("classify_second_id <=", value, "classifySecondId");
            return (Criteria) this;
        }

        public Criteria andClassifySecondIdLike(String value) {
            addCriterion("classify_second_id like", value, "classifySecondId");
            return (Criteria) this;
        }

        public Criteria andClassifySecondIdNotLike(String value) {
            addCriterion("classify_second_id not like", value, "classifySecondId");
            return (Criteria) this;
        }

        public Criteria andClassifySecondIdIn(List<String> values) {
            addCriterion("classify_second_id in", values, "classifySecondId");
            return (Criteria) this;
        }

        public Criteria andClassifySecondIdNotIn(List<String> values) {
            addCriterion("classify_second_id not in", values, "classifySecondId");
            return (Criteria) this;
        }

        public Criteria andClassifySecondIdBetween(String value1, String value2) {
            addCriterion("classify_second_id between", value1, value2, "classifySecondId");
            return (Criteria) this;
        }

        public Criteria andClassifySecondIdNotBetween(String value1, String value2) {
            addCriterion("classify_second_id not between", value1, value2, "classifySecondId");
            return (Criteria) this;
        }

        public Criteria andMessageTitleIsNull() {
            addCriterion("message_title is null");
            return (Criteria) this;
        }

        public Criteria andMessageTitleIsNotNull() {
            addCriterion("message_title is not null");
            return (Criteria) this;
        }

        public Criteria andMessageTitleEqualTo(String value) {
            addCriterion("message_title =", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleNotEqualTo(String value) {
            addCriterion("message_title <>", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleGreaterThan(String value) {
            addCriterion("message_title >", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleGreaterThanOrEqualTo(String value) {
            addCriterion("message_title >=", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleLessThan(String value) {
            addCriterion("message_title <", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleLessThanOrEqualTo(String value) {
            addCriterion("message_title <=", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleLike(String value) {
            addCriterion("message_title like", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleNotLike(String value) {
            addCriterion("message_title not like", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleIn(List<String> values) {
            addCriterion("message_title in", values, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleNotIn(List<String> values) {
            addCriterion("message_title not in", values, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleBetween(String value1, String value2) {
            addCriterion("message_title between", value1, value2, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleNotBetween(String value1, String value2) {
            addCriterion("message_title not between", value1, value2, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageUrlIsNull() {
            addCriterion("message_url is null");
            return (Criteria) this;
        }

        public Criteria andMessageUrlIsNotNull() {
            addCriterion("message_url is not null");
            return (Criteria) this;
        }

        public Criteria andMessageUrlEqualTo(String value) {
            addCriterion("message_url =", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlNotEqualTo(String value) {
            addCriterion("message_url <>", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlGreaterThan(String value) {
            addCriterion("message_url >", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlGreaterThanOrEqualTo(String value) {
            addCriterion("message_url >=", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlLessThan(String value) {
            addCriterion("message_url <", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlLessThanOrEqualTo(String value) {
            addCriterion("message_url <=", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlLike(String value) {
            addCriterion("message_url like", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlNotLike(String value) {
            addCriterion("message_url not like", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlIn(List<String> values) {
            addCriterion("message_url in", values, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlNotIn(List<String> values) {
            addCriterion("message_url not in", values, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlBetween(String value1, String value2) {
            addCriterion("message_url between", value1, value2, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlNotBetween(String value1, String value2) {
            addCriterion("message_url not between", value1, value2, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessagePublisherIsNull() {
            addCriterion("message_publisher is null");
            return (Criteria) this;
        }

        public Criteria andMessagePublisherIsNotNull() {
            addCriterion("message_publisher is not null");
            return (Criteria) this;
        }

        public Criteria andMessagePublisherEqualTo(String value) {
            addCriterion("message_publisher =", value, "messagePublisher");
            return (Criteria) this;
        }

        public Criteria andMessagePublisherNotEqualTo(String value) {
            addCriterion("message_publisher <>", value, "messagePublisher");
            return (Criteria) this;
        }

        public Criteria andMessagePublisherGreaterThan(String value) {
            addCriterion("message_publisher >", value, "messagePublisher");
            return (Criteria) this;
        }

        public Criteria andMessagePublisherGreaterThanOrEqualTo(String value) {
            addCriterion("message_publisher >=", value, "messagePublisher");
            return (Criteria) this;
        }

        public Criteria andMessagePublisherLessThan(String value) {
            addCriterion("message_publisher <", value, "messagePublisher");
            return (Criteria) this;
        }

        public Criteria andMessagePublisherLessThanOrEqualTo(String value) {
            addCriterion("message_publisher <=", value, "messagePublisher");
            return (Criteria) this;
        }

        public Criteria andMessagePublisherLike(String value) {
            addCriterion("message_publisher like", value, "messagePublisher");
            return (Criteria) this;
        }

        public Criteria andMessagePublisherNotLike(String value) {
            addCriterion("message_publisher not like", value, "messagePublisher");
            return (Criteria) this;
        }

        public Criteria andMessagePublisherIn(List<String> values) {
            addCriterion("message_publisher in", values, "messagePublisher");
            return (Criteria) this;
        }

        public Criteria andMessagePublisherNotIn(List<String> values) {
            addCriterion("message_publisher not in", values, "messagePublisher");
            return (Criteria) this;
        }

        public Criteria andMessagePublisherBetween(String value1, String value2) {
            addCriterion("message_publisher between", value1, value2, "messagePublisher");
            return (Criteria) this;
        }

        public Criteria andMessagePublisherNotBetween(String value1, String value2) {
            addCriterion("message_publisher not between", value1, value2, "messagePublisher");
            return (Criteria) this;
        }

        public Criteria andMessageKeywordIsNull() {
            addCriterion("message_keyword is null");
            return (Criteria) this;
        }

        public Criteria andMessageKeywordIsNotNull() {
            addCriterion("message_keyword is not null");
            return (Criteria) this;
        }

        public Criteria andMessageKeywordEqualTo(String value) {
            addCriterion("message_keyword =", value, "messageKeyword");
            return (Criteria) this;
        }

        public Criteria andMessageKeywordNotEqualTo(String value) {
            addCriterion("message_keyword <>", value, "messageKeyword");
            return (Criteria) this;
        }

        public Criteria andMessageKeywordGreaterThan(String value) {
            addCriterion("message_keyword >", value, "messageKeyword");
            return (Criteria) this;
        }

        public Criteria andMessageKeywordGreaterThanOrEqualTo(String value) {
            addCriterion("message_keyword >=", value, "messageKeyword");
            return (Criteria) this;
        }

        public Criteria andMessageKeywordLessThan(String value) {
            addCriterion("message_keyword <", value, "messageKeyword");
            return (Criteria) this;
        }

        public Criteria andMessageKeywordLessThanOrEqualTo(String value) {
            addCriterion("message_keyword <=", value, "messageKeyword");
            return (Criteria) this;
        }

        public Criteria andMessageKeywordLike(String value) {
            addCriterion("message_keyword like", value, "messageKeyword");
            return (Criteria) this;
        }

        public Criteria andMessageKeywordNotLike(String value) {
            addCriterion("message_keyword not like", value, "messageKeyword");
            return (Criteria) this;
        }

        public Criteria andMessageKeywordIn(List<String> values) {
            addCriterion("message_keyword in", values, "messageKeyword");
            return (Criteria) this;
        }

        public Criteria andMessageKeywordNotIn(List<String> values) {
            addCriterion("message_keyword not in", values, "messageKeyword");
            return (Criteria) this;
        }

        public Criteria andMessageKeywordBetween(String value1, String value2) {
            addCriterion("message_keyword between", value1, value2, "messageKeyword");
            return (Criteria) this;
        }

        public Criteria andMessageKeywordNotBetween(String value1, String value2) {
            addCriterion("message_keyword not between", value1, value2, "messageKeyword");
            return (Criteria) this;
        }

        public Criteria andMessageClicknumIsNull() {
            addCriterion("message_clicknum is null");
            return (Criteria) this;
        }

        public Criteria andMessageClicknumIsNotNull() {
            addCriterion("message_clicknum is not null");
            return (Criteria) this;
        }

        public Criteria andMessageClicknumEqualTo(Integer value) {
            addCriterion("message_clicknum =", value, "messageClicknum");
            return (Criteria) this;
        }

        public Criteria andMessageClicknumNotEqualTo(Integer value) {
            addCriterion("message_clicknum <>", value, "messageClicknum");
            return (Criteria) this;
        }

        public Criteria andMessageClicknumGreaterThan(Integer value) {
            addCriterion("message_clicknum >", value, "messageClicknum");
            return (Criteria) this;
        }

        public Criteria andMessageClicknumGreaterThanOrEqualTo(Integer value) {
            addCriterion("message_clicknum >=", value, "messageClicknum");
            return (Criteria) this;
        }

        public Criteria andMessageClicknumLessThan(Integer value) {
            addCriterion("message_clicknum <", value, "messageClicknum");
            return (Criteria) this;
        }

        public Criteria andMessageClicknumLessThanOrEqualTo(Integer value) {
            addCriterion("message_clicknum <=", value, "messageClicknum");
            return (Criteria) this;
        }

        public Criteria andMessageClicknumIn(List<Integer> values) {
            addCriterion("message_clicknum in", values, "messageClicknum");
            return (Criteria) this;
        }

        public Criteria andMessageClicknumNotIn(List<Integer> values) {
            addCriterion("message_clicknum not in", values, "messageClicknum");
            return (Criteria) this;
        }

        public Criteria andMessageClicknumBetween(Integer value1, Integer value2) {
            addCriterion("message_clicknum between", value1, value2, "messageClicknum");
            return (Criteria) this;
        }

        public Criteria andMessageClicknumNotBetween(Integer value1, Integer value2) {
            addCriterion("message_clicknum not between", value1, value2, "messageClicknum");
            return (Criteria) this;
        }

        public Criteria andMessageStatusIsNull() {
            addCriterion("message_status is null");
            return (Criteria) this;
        }

        public Criteria andMessageStatusIsNotNull() {
            addCriterion("message_status is not null");
            return (Criteria) this;
        }

        public Criteria andMessageStatusEqualTo(String value) {
            addCriterion("message_status =", value, "messageStatus");
            return (Criteria) this;
        }

        public Criteria andMessageStatusNotEqualTo(String value) {
            addCriterion("message_status <>", value, "messageStatus");
            return (Criteria) this;
        }

        public Criteria andMessageStatusGreaterThan(String value) {
            addCriterion("message_status >", value, "messageStatus");
            return (Criteria) this;
        }

        public Criteria andMessageStatusGreaterThanOrEqualTo(String value) {
            addCriterion("message_status >=", value, "messageStatus");
            return (Criteria) this;
        }

        public Criteria andMessageStatusLessThan(String value) {
            addCriterion("message_status <", value, "messageStatus");
            return (Criteria) this;
        }

        public Criteria andMessageStatusLessThanOrEqualTo(String value) {
            addCriterion("message_status <=", value, "messageStatus");
            return (Criteria) this;
        }

        public Criteria andMessageStatusLike(String value) {
            addCriterion("message_status like", value, "messageStatus");
            return (Criteria) this;
        }

        public Criteria andMessageStatusNotLike(String value) {
            addCriterion("message_status not like", value, "messageStatus");
            return (Criteria) this;
        }

        public Criteria andMessageStatusIn(List<String> values) {
            addCriterion("message_status in", values, "messageStatus");
            return (Criteria) this;
        }

        public Criteria andMessageStatusNotIn(List<String> values) {
            addCriterion("message_status not in", values, "messageStatus");
            return (Criteria) this;
        }

        public Criteria andMessageStatusBetween(String value1, String value2) {
            addCriterion("message_status between", value1, value2, "messageStatus");
            return (Criteria) this;
        }

        public Criteria andMessageStatusNotBetween(String value1, String value2) {
            addCriterion("message_status not between", value1, value2, "messageStatus");
            return (Criteria) this;
        }

        public Criteria andMessageOrderIsNull() {
            addCriterion("message_order is null");
            return (Criteria) this;
        }

        public Criteria andMessageOrderIsNotNull() {
            addCriterion("message_order is not null");
            return (Criteria) this;
        }

        public Criteria andMessageOrderEqualTo(Integer value) {
            addCriterion("message_order =", value, "messageOrder");
            return (Criteria) this;
        }

        public Criteria andMessageOrderNotEqualTo(Integer value) {
            addCriterion("message_order <>", value, "messageOrder");
            return (Criteria) this;
        }

        public Criteria andMessageOrderGreaterThan(Integer value) {
            addCriterion("message_order >", value, "messageOrder");
            return (Criteria) this;
        }

        public Criteria andMessageOrderGreaterThanOrEqualTo(Integer value) {
            addCriterion("message_order >=", value, "messageOrder");
            return (Criteria) this;
        }

        public Criteria andMessageOrderLessThan(Integer value) {
            addCriterion("message_order <", value, "messageOrder");
            return (Criteria) this;
        }

        public Criteria andMessageOrderLessThanOrEqualTo(Integer value) {
            addCriterion("message_order <=", value, "messageOrder");
            return (Criteria) this;
        }

        public Criteria andMessageOrderIn(List<Integer> values) {
            addCriterion("message_order in", values, "messageOrder");
            return (Criteria) this;
        }

        public Criteria andMessageOrderNotIn(List<Integer> values) {
            addCriterion("message_order not in", values, "messageOrder");
            return (Criteria) this;
        }

        public Criteria andMessageOrderBetween(Integer value1, Integer value2) {
            addCriterion("message_order between", value1, value2, "messageOrder");
            return (Criteria) this;
        }

        public Criteria andMessageOrderNotBetween(Integer value1, Integer value2) {
            addCriterion("message_order not between", value1, value2, "messageOrder");
            return (Criteria) this;
        }

        public Criteria andMessageTimeIsNull() {
            addCriterion("message_time is null");
            return (Criteria) this;
        }

        public Criteria andMessageTimeIsNotNull() {
            addCriterion("message_time is not null");
            return (Criteria) this;
        }

        public Criteria andMessageTimeEqualTo(String value) {
            addCriterion("message_time =", value, "messageTime");
            return (Criteria) this;
        }

        public Criteria andMessageTimeNotEqualTo(String value) {
            addCriterion("message_time <>", value, "messageTime");
            return (Criteria) this;
        }

        public Criteria andMessageTimeGreaterThan(String value) {
            addCriterion("message_time >", value, "messageTime");
            return (Criteria) this;
        }

        public Criteria andMessageTimeGreaterThanOrEqualTo(String value) {
            addCriterion("message_time >=", value, "messageTime");
            return (Criteria) this;
        }

        public Criteria andMessageTimeLessThan(String value) {
            addCriterion("message_time <", value, "messageTime");
            return (Criteria) this;
        }

        public Criteria andMessageTimeLessThanOrEqualTo(String value) {
            addCriterion("message_time <=", value, "messageTime");
            return (Criteria) this;
        }

        public Criteria andMessageTimeLike(String value) {
            addCriterion("message_time like", value, "messageTime");
            return (Criteria) this;
        }

        public Criteria andMessageTimeNotLike(String value) {
            addCriterion("message_time not like", value, "messageTime");
            return (Criteria) this;
        }

        public Criteria andMessageTimeIn(List<String> values) {
            addCriterion("message_time in", values, "messageTime");
            return (Criteria) this;
        }

        public Criteria andMessageTimeNotIn(List<String> values) {
            addCriterion("message_time not in", values, "messageTime");
            return (Criteria) this;
        }

        public Criteria andMessageTimeBetween(String value1, String value2) {
            addCriterion("message_time between", value1, value2, "messageTime");
            return (Criteria) this;
        }

        public Criteria andMessageTimeNotBetween(String value1, String value2) {
            addCriterion("message_time not between", value1, value2, "messageTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}